Add page vote buttons with Segment and Hotjar survey integration#10488
Merged
Conversation
Replaces the old commented-out Yes/No buttons with a single "Leave feedback" button that fires a Hotjar JS API event (docs_page_feedback) to open a survey popover on click. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces single feedback button with thumbs up/down Yes/No buttons. Both buttons fire a Segment docs_page_vote event (vote: yes/no, page path) and a Hotjar docs_page_feedback event to trigger the survey popover. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Last path segment had a copied value from the thumbs-down SVG causing the handle to render incorrectly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Matches Figma dark mode spec (#a5aab9) for Yes/No button text and icons. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lavin-ds
approved these changes
Jul 15, 2026
…urvey # Conflicts: # ui/src/partials/article-footer.hbs
…s/No buttons Buttons now show a clear selected state on click and can be toggled back and forth freely, since there was no existing pattern on the site to model this interaction after. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
analytics.track('docs_page_vote', { vote: 'yes'|'no', page: <pathname> })— Segment event for Amplitude reportinghj('event', 'docs_page_feedback')— triggers a Hotjar survey popover (survey configured in Hotjar dashboard with a JavaScript API event trigger nameddocs_page_feedback)ui/src/js/16-hotjar-feedback.js, auto-bundled intosite.jscurrentColorfor dark mode support> Note: THIS CHANGE IS WAITING ON MOVING KAPA TO THE TOP BY SEARCHHotjar setup required
The Hotjar survey must be set to Active in the dashboard, with:
docs_page_feedbackTest plan
window.hj = (e, n) => console.log(e, n)andwindow.analytics = { track: (e, p) => console.log(e, p) }, click each button and confirm both events fire with the correct vote valueDONE:
🤖 Generated with Claude Code